//
//  FocusSquare.h
//  HKOCRuler
//
//  Created by lbxia on 2018/11/23.
//  Copyright © 2018年 lbx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ARKit/ARKit.h>

API_AVAILABLE(ios(11.0))
@interface FocusSquare : SCNNode

@property (nonatomic, assign) CGFloat focusSquareSize;
@property (nonatomic, assign) CGFloat focusSquareThickness;

@property (nonatomic, assign) CGFloat scaleForClosedSquare;

@property (nonatomic, assign) CGFloat sideLengthForOpenSquareSegments;

@property (nonatomic, assign) CGFloat animationDuration;

@property (nonatomic, strong) UIColor *focusSquareColor;
@property (nonatomic, strong) UIColor *focusSquareColorLight;


@property (nonatomic, assign) SCNVector3 lastPositionOnPlane;
@property (nonatomic, assign) SCNVector3 lastPosition;


@property (nonatomic, assign) BOOL isOpen;
@property (nonatomic, assign) BOOL isAnimation;


- (void)hide;

- (void)unhide;


- (SCNNode*)focusSquareNode;

@end
